From f60e144038a50c48ebbb928f4bf1bd8208d48f86 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 5 Feb 2016 06:53:11 +0100 Subject: [PATCH] Document rem as CSS unit --- docs/reference/gtk/css-properties.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/reference/gtk/css-properties.xml b/docs/reference/gtk/css-properties.xml index 09fcc0b343..3b80b4ae8e 100644 --- a/docs/reference/gtk/css-properties.xml +++ b/docs/reference/gtk/css-properties.xml @@ -53,7 +53,7 @@ We use for syntax productions, and each line is put in a The following basic datatypes are used throughout: -〈length〉 = 〈number〉 [ px | pt | em | ex | pc | in | cm | mm ] +〈length〉 = 〈number〉 [ px | pt | em | ex |rem | pc | in | cm | mm ] 〈percentage〉 = 〈number〉 % 〈angle〉 = 〈number〉 [ deg | grad | turn ] 〈time〉 = 〈number〉 [ s | ms ] @@ -65,6 +65,11 @@ We use for syntax productions, and each line is put in a which case they are resolved using the inherited font size value. + + The rem unit is resolved using the initial font size value, which is + not quite the same as the CSS definition of rem. + + A common pattern among shorthand properties (called 'four sides') is one where one to four values can be specified, to determine a value for each -- 2.30.2